using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Colorprj
{
    public partial class PurSearch : Form
    {
        public PurSearch()
        {
            InitializeComponent();
        }

        private void PurSearch_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'colorPrjDataSet4.PurHead' table. You can move, or remove it, as needed.
            this.purHeadTableAdapter.Fill(this.colorPrjDataSet4.PurHead);

        }

        //private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        //{
        //    this.DialogResult = DialogResult.OK;
        //    this.Close();
        //}
        public string ItemToRead
        {
            get
            {
                //List<Product> list = this.dataProvider.GetProductList();
                //Product product = list[this.itemsComboBox.SelectedIndex];
                return dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            }
        }

        private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            //MessageBox.Show(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()   );   
            this.DialogResult = DialogResult.OK;
            this.Close();
            

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}